import { APP_ROUTES } from "@/pd-libs/enum/app-routes";
import PD from "..";
import type { ORDER_ADDRESS_TYPE } from "@/pd-libs/enum/pd-enum";

type LocationItem = {
	address: string,
	type: ORDER_ADDRESS_TYPE
	location: {
		latitude: number,
		longitude: number,
	},
};
export function viewOrderAddressInMap(points: LocationItem[]) {
	PD.UniHelp.navTo(`${APP_ROUTES.viewOrderAddressInMap}?points=${JSON.stringify(points)}`);
}